package com.weitu.threeSimultaneities.projectApproval.service.impl;

import com.weitu.accessory.service.AccessoryUtilService;
import com.weitu.threeSimultaneities.projectApproval.entity.ProjectAccept;
import com.weitu.threeSimultaneities.projectApproval.mapper.ProjectAcceptMapper;
import com.weitu.threeSimultaneities.projectApproval.service.ProjectAcceptService;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProjectAcceptServiceImpl implements ProjectAcceptService {
    @Autowired
    private ProjectAcceptMapper projectAcceptMapper;

    public ProjectAccept selectById (String id) {
        return this.projectAcceptMapper.selectById(id);
    }
    public ProjectAccept selectByProjectApprovalId(String id) {
        return this.projectAcceptMapper.selectByProjectApprovalId(id);
    }

    public int deleteByProjectApprovalId(String id) {
        ProjectAccept projectDesign=this.selectByProjectApprovalId(id);
        int flag=1;
        if(projectDesign!=null){
            flag=this.projectAcceptMapper.deleteByProjectApprovalId(id);
        }
        return flag;
    }

    public int updateByPrimaryKeySelective(Map paramMap) {
        return this.projectAcceptMapper.updateByPrimaryKeySelective(paramMap);
    }

    public int insertSelective(Map paramMap) {
        return this.projectAcceptMapper.insertSelective(paramMap);
    }
}